package com.qf.business.user.service.impl;



import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.qf.business.user.mapper.UserMapper;
import com.qf.business.user.service.UserService;
import com.qf.data.user.entity.User;
import org.springframework.stereotype.Service;

/**
 * (User)表服务实现类
 *
 * @author makejava
 * @since 2022-07-05 09:52:56
 */
@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements UserService {

    @Override
    public User queryByOpenId(String openId) {

        User user = super.query()
                .eq("open_id",openId)
                .one();
        return user;
    }
}

